package com.borrow.jiemihua.mainUI.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.borrow.jiemihua.R;
import com.borrow.jiemihua.base.BaseActivity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

@ContentView(R.layout.activity_question)
public class QuestionActivity extends BaseActivity {
    @ViewInject(R.id.tv_top_title)
    private TextView tv_top_title;
    @ViewInject(R.id.ll_1_gz)
    private LinearLayout ll_1_gz;
    @ViewInject(R.id.ll_2_gz)
    private LinearLayout ll_2_gz;
    @ViewInject(R.id.ll_3_gz)
    private LinearLayout ll_3_gz;
    @ViewInject(R.id.ll_4_gz)
    private LinearLayout ll_4_gz;
    @ViewInject(R.id.iv_right_img1)
    private ImageView iv_right_img1;
    @ViewInject(R.id.iv_right_img2)
    private ImageView iv_right_img2;
    @ViewInject(R.id.iv_right_img3)
    private ImageView iv_right_img3;
    @ViewInject(R.id.iv_right_img4)
    private ImageView iv_right_img4;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.view().inject(this);
        initData();
        initView();
    }

    @Override
    protected void initData() {
        tv_top_title.setText("常见问题");

    }

    @Override
    protected void initView() {

    }
    private boolean boo=true;
    @Event(value = {R.id.imgbtn_left,R.id.rl_1,R.id.rl_2,R.id.rl_3,R.id.rl_4}, type = View.OnClickListener.class)
    private void getEvent(View view) {
        Intent intent = null;
        switch (view.getId()) {
            case R.id.imgbtn_left:
                finish();
                break;
//            case R.id.rl_1:
//                if(boo==true){
//                    ll_1_gz.setVisibility(View.VISIBLE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img1.setImageResource(R.drawable.me_icon_down);
//                    boo=false;
//                }else{
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img1.setImageResource(R.drawable.me_top_icon);
//                    boo=true;
//                }
//                break;
//            case R.id.rl_2:
//                if(boo==true){
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.VISIBLE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img2.setImageResource(R.drawable.me_icon_down);
//                    boo=false;
//                }else{
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img2.setImageResource(R.drawable.me_top_icon);
//                    boo=true;
//                }
//                break;
//            case R.id.rl_3:
//                if(boo==true){
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.VISIBLE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img3.setImageResource(R.drawable.me_icon_down);
//                    boo=false;
//                }else{
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img3.setImageResource(R.drawable.me_top_icon);
//                    boo=true;
//                }
//                break;
//            case R.id.rl_4:
//                if(boo==true){
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.VISIBLE);
//                    iv_right_img4.setImageResource(R.drawable.me_icon_down);
//                    boo=false;
//                }else{
//                    ll_1_gz.setVisibility(View.GONE);
//                    ll_2_gz.setVisibility(View.GONE);
//                    ll_3_gz.setVisibility(View.GONE);
//                    ll_4_gz.setVisibility(View.GONE);
//                    iv_right_img4.setImageResource(R.drawable.me_top_icon);
//                    boo=true;
//                }
//                break;
        }
    }
}
